package com.yjc.drygoods.authServer.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author yjc
 * @create 2022-09-17 10:10
 */
@Configuration
public class DryGoodsWebConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        //跳转登陆页面
//        registry.addViewController("/login.html").setViewName("login");
        //跳转注册页面
        registry.addViewController("/reg.html").setViewName("reg");
    }
}
